package org.jeecg.modules.achachievementsubject.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.config.mybatis.TenantContext;
import org.jeecg.modules.common.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ach_achievement_subject
 * @author: baochangrong
 * @Date:   2022-03-18
 * @Version: V1.0
 */
@Data
@TableName("ach_achievement_subject")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ach_achievement_subject对象", description="ach_achievement_subject")
public class AchAchievementSubject implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**学生*/
	@Excel(name = "学生", width = 15)
    @ApiModelProperty(value = "学生")
    private String studentId;
	/**科目*/
	@Excel(name = "科目", width = 15)
    @ApiModelProperty(value = "科目")
    private String subjectId;
	/**考试卷*/
	@Excel(name = "考试卷", width = 15)
    @ApiModelProperty(value = "考试卷")
    private String examinationPaperId;
	/**分数*/
	@Excel(name = "分数", width = 15)
    @ApiModelProperty(value = "分数")
    private Double achievementScore;
	/**考试日期*/
	@Excel(name = "考试日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "考试日期")
    private Date achievementDate;
	/**是否启用(1是启用，0否停用)*/
	@Excel(name = "是否启用(1是启用，0否停用)", width = 15)
    @ApiModelProperty(value = "是否启用(1是启用，0否停用)")
    @Dict(dicCode = "iz_open")
    private Integer izOpen=1;
	/**所属部门编码*/
    @ApiModelProperty(value = "所属部门编码")
    private String sysOrgCode;
	/**学校id*/
	@Excel(name = "学校id", width = 15)
    @ApiModelProperty(value = "学校id")
    private String tenantId= TenantContext.getTenant();
	/**0表示未删除,1表示删除*/
	@Excel(name = "0表示未删除,1表示删除", width = 15)
    @ApiModelProperty(value = "0表示未删除,1表示删除")
    @Dict(dicCode = "del_flag")
    private Integer delFlag=0;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime= DateUtil.getCurrentDate();
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime= DateUtil.getCurrentDate();

    /**学校id*/
    @Excel(name = "成绩状态", width = 15)
    @ApiModelProperty(value = "成绩状态")
    private String achievementStatus;

    /**导入批次*/
    @Excel(name = "导入批次", width = 15)
    @ApiModelProperty(value = "导入批次")
    private String batchNumber;
}
